import React from "react";
export default function firstItem(){
    const data=['第一项','第二项','第三项','第四项','第五项']
    const itemClick=(item,index)=>{
        console.log(item,index)
    }
    return(
        <div>
          <div>{data.map((item,index)=> <div key={index} onClick={()=>itemClick(item,index)}>{item}</div>)}</div>
            <button>第一层</button>
        </div>
    )
}
